import Mock from 'mockjs'
import login from './api/login'
import needInfo from './api/3-1needInfo' //招聘需求
import staffInfo from './api/4-1_staffInfo'
import Interview from './api/3-2Interview' //面试
import list1 from './api/2-assessment' // 考核设置
import Contract from './api/4-2Contract.js'
import wage from './api/look' //工资
import att from './api/att'
import per from './api/per'
import dail from './api/dail'
import apply from './api/apply'
import tra from './api/tra'
import sta from './api/sta'
import dv from './api/dv'
import ro from './api/ro'
import me from './api/sta copy'
// console.log(list);
export default function () {
  // Mock.mock(/\/api\/user\/login/, 'get', login.loginUser)
  // Mock.mock(/\/api\/user\/getName/, 'get', login.loginUseFo)
  // Mock.mock(/\/api\/user\/logout/, 'get', login.loginOut)
  // Mock.mock(/\/api\/user\/changePwd/, 'put', login.getpass)
  // Mock.mock(/\/api\/kpi\/kpiList/, 'get', list1.getlist)
  // 3-1 招聘需求
  // 渲染
  // Mock.mock(/\/api\/recruit\/recruitList/, 'get', needInfo.needsmockapi)
  // 查询
  // Mock.mock(/\/api\/recruit\/recruitLike/, 'get', needInfo.chasmockapi)
  // 修改
  // Mock.mock(/\/api\/recruit\/recruitUpdate/, 'put', needInfo.putgai)
  // 添加 /recruit/recruitAdd
  // Mock.mock(/\/api\/recruit\/recruitAdd/, 'post', needInfo.Addgai)
  // 删除成功 ~        0
  // Mock.mock(/\/api\/recruit\/recruitDelete/, 'delete', needInfo.delete)
  //工资模块
  //列表
  // Mock.mock(/\/api\/wage\/wageList/, wage.list)
  //新增
  // Mock.mock(/\/api\/wage\/wageAdd/, wage.add)
  //删除
  // Mock.mock(/\/api\/wage\/wageDelete/, wage.delete)
  //修改
  // Mock.mock(/\/api\/wage\/wageUpdate/, wage.update)
  //获取部门
  // Mock.mock(/\/api\/archives\/deptList/, wage.bumen)
  //查询

  // Mock.mock(/\/api\/wage\/wageLike/, wage.seach)

  Mock.mock(/\/api\/wage\/wageLike/,wage.seach)
 //考勤模块
 //列表
 Mock.mock(/\/api\/attendance\/attendanceList/,att.list)
//上班
Mock.mock(/\/api\/attendance\/goAdd/,att.add)
//下班
Mock.mock(/\/api\/attendance\/afterAdd/,att.afterDep)
//删除
Mock.mock(/\/api\/attendance\/attendanceDelete/,att.deleteapi)
//查询
Mock.mock(/\/api\/attendance\/attendanceLike/,att.searchapi)
//个人计划
Mock.mock(/\/api\/train\/planList/,per.list)
//新增
Mock.mock(/\/api\/train\/planAdd/,per.add)
//删除
Mock.mock(/\/api\/train\/planDelete/,per.deletePer)
//修改
Mock.mock(/\/api\/train\/planUpdate/,per.upDe)
//搜索
Mock.mock(/\/api\/train\/planLike/,per.serPer)
  Mock.mock(/\/api\/wage\/wageLike/, wage.seach)

  //考勤模块
  //列表
  // Mock.mock(/\/api\/attendance\/attendanceList/, att.list)
  //上班
  // Mock.mock(/\/api\/attendance\/goAdd/, att.add)
  //下班
  // Mock.mock(/\/api\/attendance\/afterAdd/, att.afterDep)
  //删除
  // Mock.mock(/\/api\/attendance\/attendanceDelete/, att.deleteapi)
  //查询
  // Mock.mock(/\/api\/attendance\/attendanceLike/, att.searchapi)
  //个人计划
  // Mock.mock(/\/api\/train\/planList/, per.list)
  // 3-2 面试计划
  // 渲染
  // Mock.mock(/\/api\/recruit\/interviewList/, 'get', Interview.inits)
  // 添加面试
  // Mock.mock(/\/api\/recruit\/interviewAdd/, 'post', Interview.addlist)
  //更新面试结果  /recruit/interviewUpdate
  // Mock.mock(/\/api\/recruit\/interviewUpdate/, 'put', Interview.addlist)
  // 查询/recruit/interviewLike
  // Mock.mock(/\/api\/recruit\/interviewLike/, 'get', Interview.chamockapi)
  // 查询面试官接口 /recruit/interviewRole
  // Mock.mock(/\/api\/recruit\/interviewRole/, 'get', Interview.dunford)
  // 删除成功 ~ /recruit/interviewDelete
  // Mock.mock(/\/api\/recruit\/interviewDelete/, 'delete', Interview.delete)
  // 4-1 档案管理
  //  渲染页面
  // Mock.mock(/\/api\/archives\/staffList/, 'get', staffInfo.staffmockapi)
  // 查询搜索 /archives/staffLike
  // Mock.mock(/\/api\/archives\/staffLike/, 'get', staffInfo.chasoumockapi)
  // 查询公司部门
  // Mock.mock(/\/api\/archives\/deptList/, 'get', staffInfo.cha1api)
  //查询员工姓名
  // Mock.mock(/\/api\/archives\/getNameList/, 'get', staffInfo.chayuanapi)
  // 查询员工姓名对应部门 /archives/getDeptByName
  // Mock.mock(/\/api\/archives\/getDeptByName/, 'get', staffInfo.chayuanjbuapi)
  // 修改 /archives/staffUpdate
  // Mock.mock(/\/api\/archives\/staffUpdate/, 'put', staffInfo.gaimockapi)
  // 添加 /archives/staffAdd
  // Mock.mock(/\/api\/archives\/staffAdd/, 'post', staffInfo.Addgai)
  // 删除成功 ~ /archives/staffDelete
  // Mock.mock(/\/api\/archives\/staffDelete/, 'delete', staffInfo.delete)
  // 4-2 合同管理
  // 渲染
  // Mock.mock(/\/api\/archives\/contractList/, 'get', Contract.inits)
  // 添加面试
  // Mock.mock(/\/api\/archives\/contractAdd/, 'post', Contract.addlist)
  //修改合同管理  /archives/contractUpdate
  // Mock.mock(/\/api\/archives\/contractUpdate/, 'put', Contract.addlist)
  // 查询/archives/contractLike
  // Mock.mock(/\/api\/archives\/contractLike/, 'get', Contract.chamockapi)
  // 删除成功 ~ /archives/contractDelete

  // Mock.mock(/\/api\/archives\/contractDelete/, 'delete', Contract.delete)

  Mock.mock(/\/api\/archives\/contractDelete/, 'delete', Contract.delete)
  //个人日报
  Mock.mock(/\/api\/daily\/dailyList/, dail.list)
  //新增
  Mock.mock(/\/api\/daily\/dailyAdd/, dail.add)
  //修改
  Mock.mock(/\/api\/daily\/dailyUpdate/, dail.upDe)
  //删除
  Mock.mock(/\/api\/daily\/dailyDelete/, dail.deletePer)
  //查询
  Mock.mock(/\/api\/daily\/dailyLike/, dail.serPer)
  //个人转正
  Mock.mock(/\/api\/apply\/applyList/, apply.list)
  //新增
  Mock.mock(/\/api\/apply\/applyAdd/, apply.add)
  //审核
  Mock.mock(/\/api\/apply\/applyUpdate/, apply.upDe)
  //删除
  Mock.mock(/\/api\/apply\/applyDelete/, apply.deletePer)
  //搜索
  Mock.mock(/\/api\/apply\/applyLike/, apply.serPer)
  //员工培训
  Mock.mock(/\/api\/train\/trainList/, tra.list)
  //新增
  Mock.mock(/\/api\/train\/trainAdd/, tra.add)
  // 修改
  Mock.mock(/\/api\/train\/trainUpdate/, tra.upDe)
  //删除
  Mock.mock(/\/api\/train\/trainDelete/, tra.deletePer)
  //查询
  Mock.mock(/\/api\/train\/trainLike/, tra.serPer)
    //账号管理
    Mock.mock(/\/api\/account\/accountList/, sta.list)
    //新增
    Mock.mock(/\/api\/account\/accountAdd/, sta.add)
    // 修改
    Mock.mock(/\/api\/account\/accountUpdate/, sta.upDe)
    //删除
    Mock.mock(/\/api\/account\/accountDelete/, sta.deletePer)
    //查询
    Mock.mock(/\/api\/account\/accountLike/, sta.serPer)
     //部门管理
     Mock.mock(/\/api\/dept\/deptList/, dv.list)
     //新增
     Mock.mock(/\/api\/dept\/deptAdd/, dv.add)
     // 修改
     Mock.mock(/\/api\/dept\/deptUpdate/, dv.upDe)
     //删除
     Mock.mock(/\/api\/dept\/deptDelete/, dv.deletePer)
 //角色管理
 Mock.mock(/\/api\/role\/roleList/, ro.list)
 //新增
 Mock.mock(/\/api\/role\/roleAdd/, ro.add)
 // 修改
 Mock.mock(/\/api\/role\/roleUpdate/, ro.upDe)
 //删除
 Mock.mock(/\/api\/role\/roleDelete/, ro.deletePer)
 //查询
 Mock.mock(/\/api\/role\/roleLike/, ro.serPer)
 //菜单管理
 Mock.mock(/\/api\/menu\/menuList/, me.list)
 //新增
 Mock.mock(/\/api\/menu\/menuAdd/, me.add)
 // 修改
 Mock.mock(/\/api\/menu\/menuUpdate/, me.upDe)
 //删除
 Mock.mock(/\/api\/menu\/menuDelete/, me.deletePer)

}
